package com.ruoyi.combat.service.useralignment.impl;

import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.combat.mapper.useralignment.CombatRelationWbMapper;
import com.ruoyi.combat.domain.useralignment.CombatRelationWb;
import com.ruoyi.combat.service.useralignment.ICombatRelationWbService;

/**
 * 课题五微博用户社交关系
Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-12
 */
@Service
public class CombatRelationWbServiceImpl implements ICombatRelationWbService 
{
    @Autowired
    private CombatRelationWbMapper combatRelationWbMapper;

    /**
     * 查询课题五微博用户社交关系

     * 
     * @param id 课题五微博用户社交关系
主键
     * @return 课题五微博用户社交关系

     */
    @Override
    public CombatRelationWb selectCombatRelationWbById(Long id)
    {
        return combatRelationWbMapper.selectCombatRelationWbById(id);
    }

    /**
     * 查询课题五微博用户社交关系
列表
     * 
     * @param combatRelationWb 课题五微博用户社交关系

     * @return 课题五微博用户社交关系

     */
    @Override
    public List<CombatRelationWb> selectCombatRelationWbList(CombatRelationWb combatRelationWb)
    {
        return combatRelationWbMapper.selectCombatRelationWbList(combatRelationWb);
    }

    @Override
    public List<CombatRelationWb> selectRelationByUserId(String userId) {
        return combatRelationWbMapper.selectRelationByUserId(userId);
    }

    /**
     * 新增课题五微博用户社交关系

     * 
     * @param combatRelationWb 课题五微博用户社交关系

     * @return 结果
     */
    @Override
    public int insertCombatRelationWb(CombatRelationWb combatRelationWb)
    {
        return combatRelationWbMapper.insertCombatRelationWb(combatRelationWb);
    }

    /**
     * 修改课题五微博用户社交关系

     * 
     * @param combatRelationWb 课题五微博用户社交关系

     * @return 结果
     */
    @Override
    public int updateCombatRelationWb(CombatRelationWb combatRelationWb)
    {
        return combatRelationWbMapper.updateCombatRelationWb(combatRelationWb);
    }

    /**
     * 批量删除课题五微博用户社交关系

     * 
     * @param ids 需要删除的课题五微博用户社交关系
主键
     * @return 结果
     */
    @Override
    public int deleteCombatRelationWbByIds(Long[] ids)
    {
        return combatRelationWbMapper.deleteCombatRelationWbByIds(ids);
    }

    /**
     * 删除课题五微博用户社交关系
信息
     * 
     * @param id 课题五微博用户社交关系
主键
     * @return 结果
     */
    @Override
    public int deleteCombatRelationWbById(Long id)
    {
        return combatRelationWbMapper.deleteCombatRelationWbById(id);
    }
}
